package com.itheima.wms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.wms.common.service.ICrudService;
import com.itheima.wms.entity.ReceiptEntity;
import com.itheima.wms.vo.BatchVO;
import com.itheima.wms.vo.ReceiptDetailVO;
import com.itheima.wms.vo.ReceiptVO;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 业务接口
 * 入库单
 * </p>
 */
public interface ReceiptService extends ICrudService<ReceiptEntity> {

    List<ReceiptVO> convertDetailList(List<ReceiptEntity> records);

    ReceiptVO convertDetail(ReceiptEntity entity);

    BatchVO receiving(List<Long> ids);

    ReceiptDetailVO getDetail(Long id);

    IPage<ReceiptDetailVO> pageDetail(Page<ReceiptDetailVO> page, Map data);
}
